Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simpler Name Equality #133

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Simpler Name Equality #133

wants to merge 7 commits into from

Conversation

johnckolesar
Copy link
Collaborator

No description provided.

(exposedModules $ condTreeData cn) ++ modules ++ others ++
(otherModules $ libBuildInfo $ condTreeData cn))
proj' = map (proj </>) paths

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like it could be useful for applications other than RewriteV/Nebula- maybe we should move it to G2.Translation.Cabal.Cabal?

@@ -82,15 +82,13 @@ nameLoc :: Name -> Maybe Span
nameLoc (Name _ _ _ s) = s

-- | Allows the creation of fresh `Name`s.
data NameGen = NameGen { max_uniq :: (HM.HashMap (T.Text, Maybe T.Text) Int)
, dc_children :: (HM.HashMap Name [Name]) }
data NameGen = NameGen { max_uniq :: Int }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this could be a newtype instead of a data?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants